package com.ruoyi.system.domain.wx.pay;

import java.math.BigDecimal;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 支出明细对象 wx_pay_info
 *
 * @author mic
 * @date 2023-08-14
 */
public class WxPayInfo extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    private String payId;

    /**
     * 金额
     */
    @Excel(name = "金额")
    private Double payAmount;

    /**
     * 一级类型
     */
    @Excel(name = "一级类型")
    private String primaryType;

    /**
     * 二级类型
     */
    @Excel(name = "二级类型")
    private String minorType;

    /**
     * 支付类型
     */
    @Excel(name = "支付类型")
    private String payType;

    /**
     * 状态
     */
    @Excel(name = "状态 0正常 1删除")
    private String status;

    /**
     * 创建时间
     */
//    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm")
    private Date createDate;

    /**
     * 更新时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm")
    private Date updateDate;

    /**
     * 分享者
     */
    private String shareBy;

    // 创建时间格式化
    private String createDateStr;
    // 用户id
    private String userId;
    // 显示id
    private Integer viewId;

    public String getCreateDateStr() {
        return createDateStr;
    }

    public void setCreateDateStr(String createDateStr) {
        this.createDateStr = createDateStr;
    }

    public String getShareBy() {
        return shareBy;
    }

    public void setShareBy(String shareBy) {
        this.shareBy = shareBy;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public Integer getViewId() {
        return viewId;
    }

    public void setViewId(Integer viewId) {
        this.viewId = viewId;
    }

    public void setPayId(String payId) {
        this.payId = payId;
    }

    public String getPayId() {
        return payId;
    }

    public void setPayAmount(Double payAmount) {
        this.payAmount = payAmount;
    }

    public Double getPayAmount() {
        return payAmount;
    }

    public void setPrimaryType(String primaryType) {
        this.primaryType = primaryType;
    }

    public String getPrimaryType() {
        return primaryType;
    }

    public void setMinorType(String minorType) {
        this.minorType = minorType;
    }

    public String getMinorType() {
        return minorType;
    }

    public void setPayType(String payType) {
        this.payType = payType;
    }

    public String getPayType() {
        return payType;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getStatus() {
        return status;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("payId", getPayId())
                .append("payAmount", getPayAmount())
                .append("primaryType", getPrimaryType())
                .append("minorType", getMinorType())
                .append("payType", getPayType())
                .append("remark", getRemark())
                .append("status", getStatus())
                .append("createBy", getCreateBy())
                .append("createDate", getCreateDate())
                .append("updateBy", getUpdateBy())
                .append("updateDate", getUpdateDate())
                .toString();
    }
}
